RippleSLBox : SCTextField{

	var controller;
	
	*new{|mainWindow, x, y|
		^super.new(mainWindow, Rect(x, y, 130, UiConstants.getSequencerFieldHeight) ).initLocal;
	}
	
	initLocal{|controllerArg|
	
		
		this.string = "";
		this.setProperty(\boxColor,Color.white);
		this.setProperty(\stringColor,Color.black);
		this.font = UiConstants.getSequencerFont;
		//this.mouseUpAction = {  Sequencer.setCurrentSL ( Sequencer.s.at(name) ); MidiManager.currentSL };
	
	}
	
	receiveDrag{
		{this.string = RippleDirBrowser.getSelectedFileName}.defer; 
		controller.setPath(RippleDirBrowser.getSelectedFilePath);
	}
	
	setController{|controllerArg|
		controller = controllerArg;
	}
	
}